.class Lcom/example/m6wmr/ShopinActivity$7;
.super Ljava/lang/Thread;
.source "ShopinActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/ShopinActivity;->getshop()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/ShopinActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/ShopinActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/ShopinActivity$7;->this$0:Lcom/example/m6wmr/ShopinActivity;

    .line 652
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 12

    .prologue
    .line 654
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 655
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$7;->this$0:Lcom/example/m6wmr/ShopinActivity;

    .line 656
    const-string v10, "userInfo"

    const/4 v11, 0x0

    .line 655
    invoke-virtual {v9, v10, v11}, Lcom/example/m6wmr/ShopinActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v5

    .line 657
    .local v5, "preferences":Landroid/content/SharedPreferences;
    const-string v9, "uid"

    const-string v10, ""

    invoke-interface {v5, v9, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 658
    .local v0, "account":Ljava/lang/String;
    const-string v9, "pass"

    const-string v10, ""

    invoke-interface {v5, v9, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 660
    .local v6, "pwd":Ljava/lang/String;
    new-instance v4, Landroid/os/Message;

    invoke-direct {v4}, Landroid/os/Message;-><init>()V

    .line 661
    .local v4, "msg":Landroid/os/Message;
    if-eqz v0, :cond_0

    const-string v9, ""

    invoke-virtual {v0, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_1

    .line 662
    :cond_0
    const/4 v9, 0x3

    iput v9, v4, Landroid/os/Message;->arg1:I

    .line 664
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$7;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->h:Landroid/os/Handler;
    invoke-static {v9}, Lcom/example/m6wmr/ShopinActivity;->access$21(Lcom/example/m6wmr/ShopinActivity;)Landroid/os/Handler;

    move-result-object v9

    invoke-virtual {v9, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 712
    :goto_0
    return-void

    .line 666
    :cond_1
    new-instance v9, Ljava/lang/StringBuilder;

    iget-object v10, p0, Lcom/example/m6wmr/ShopinActivity$7;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->m:Lmyapp/MyApp;
    invoke-static {v10}, Lcom/example/m6wmr/ShopinActivity;->access$6(Lcom/example/m6wmr/ShopinActivity;)Lmyapp/MyApp;

    move-result-object v10

    invoke-virtual {v10}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v10, "/index.php?ctrl=app&action=checkopen&uid="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 667
    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&pwd="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&datatype=json"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 666
    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    .line 669
    .local v8, "url":Ljava/lang/String;
    const-string v9, "ShopyushowACtivity"

    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "checklogin()\u3000"

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 671
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$7;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->m:Lmyapp/MyApp;
    invoke-static {v9}, Lcom/example/m6wmr/ShopinActivity;->access$6(Lcom/example/m6wmr/ShopinActivity;)Lmyapp/MyApp;

    move-result-object v9

    invoke-static {v8, v9}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v7

    .line 676
    .local v7, "str":Ljava/lang/String;
    :try_start_0
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3, v7}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 677
    .local v3, "json":Lorg/json/JSONObject;
    const-string v9, "error"

    invoke-virtual {v3, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    const-string v10, "true"

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_2

    .line 679
    const-string v9, "msg"

    invoke-virtual {v3, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v4, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 680
    const/4 v9, 0x1

    iput v9, v4, Landroid/os/Message;->arg1:I

    .line 681
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$7;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->h:Landroid/os/Handler;
    invoke-static {v9}, Lcom/example/m6wmr/ShopinActivity;->access$21(Lcom/example/m6wmr/ShopinActivity;)Landroid/os/Handler;

    move-result-object v9

    invoke-virtual {v9, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 703
    .end local v3    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v1

    .line 705
    .local v1, "e":Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    .line 706
    const/4 v9, 0x4

    iput v9, v4, Landroid/os/Message;->arg1:I

    .line 708
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$7;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->h:Landroid/os/Handler;
    invoke-static {v9}, Lcom/example/m6wmr/ShopinActivity;->access$21(Lcom/example/m6wmr/ShopinActivity;)Landroid/os/Handler;

    move-result-object v9

    invoke-virtual {v9, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 689
    .end local v1    # "e":Lorg/json/JSONException;
    .restart local v3    # "json":Lorg/json/JSONObject;
    :cond_2
    :try_start_1
    const-string v9, "msg"

    invoke-virtual {v3, v9}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    .line 690
    .local v2, "jo":Lorg/json/JSONObject;
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$7;->this$0:Lcom/example/m6wmr/ShopinActivity;

    const-string v10, "shoplogo"

    invoke-virtual {v2, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    iput-object v10, v9, Lcom/example/m6wmr/ShopinActivity;->imglogo:Ljava/lang/String;

    .line 691
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$7;->this$0:Lcom/example/m6wmr/ShopinActivity;

    const-string v10, "is_pass"

    invoke-virtual {v2, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    iput-object v10, v9, Lcom/example/m6wmr/ShopinActivity;->is_pass:Ljava/lang/String;

    .line 693
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$7;->this$0:Lcom/example/m6wmr/ShopinActivity;

    const-string v10, "shopname"

    invoke-virtual {v2, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lcom/example/m6wmr/ShopinActivity;->access$24(Lcom/example/m6wmr/ShopinActivity;Ljava/lang/String;)V

    .line 694
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$7;->this$0:Lcom/example/m6wmr/ShopinActivity;

    const-string v10, "address"

    invoke-virtual {v2, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lcom/example/m6wmr/ShopinActivity;->access$25(Lcom/example/m6wmr/ShopinActivity;Ljava/lang/String;)V

    .line 695
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$7;->this$0:Lcom/example/m6wmr/ShopinActivity;

    const-string v10, "maphone"

    invoke-virtual {v2, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lcom/example/m6wmr/ShopinActivity;->access$28(Lcom/example/m6wmr/ShopinActivity;Ljava/lang/String;)V

    .line 699
    const/16 v9, 0x9

    iput v9, v4, Landroid/os/Message;->arg1:I

    .line 701
    iget-object v9, p0, Lcom/example/m6wmr/ShopinActivity$7;->this$0:Lcom/example/m6wmr/ShopinActivity;

    # getter for: Lcom/example/m6wmr/ShopinActivity;->h:Landroid/os/Handler;
    invoke-static {v9}, Lcom/example/m6wmr/ShopinActivity;->access$21(Lcom/example/m6wmr/ShopinActivity;)Landroid/os/Handler;

    move-result-object v9

    invoke-virtual {v9, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 717
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 718
    monitor-exit p0

    return-void

    .line 717
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
